using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MeetingRoom.Domain;
using MeetingRoom.Service;
using MeetingRoom.Service.Implementation;

public partial class Welcome : System.Web.UI.Page
{
    protected List<Schedule> initiatedSessions = null;

    protected List<Schedule> jointSessions = null;

    protected IScheduleService scheduleService = null;

    protected IStaffService staffService;

    protected Staff staff;

    public Welcome()
    {
        this.staffService = new SimpleStaffService();
    }

    public IStaffService StaffService
    {
        set
        {
            this.staffService = value;
            this.staffService.Staff = this.staff;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!base.IsPostBack)
        {
            // list all the sessions applied and participated by the user
            this.initiatedSessions = this.staffService.GetInitiatedSessions();
        }
    }
}
